//
//  MBNetTool.h
//  Zuker
//
//  Created by MB__Lee on 2018/5/10.
//  Copyright © 2018年 zuke.com. All rights reserved.
//

#import <Foundation/Foundation.h>

//typedef void(^MBSuccess)(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject);
//typedef void(^MBFailure)(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error);

typedef void(^MBSuccess)(id response);
typedef void(^MBFailure)(NSError *error);

@interface MBNetTool : NSObject
+(void)MBPost:(NSString *)url paramater:(NSMutableDictionary *)dic success:(MBSuccess)success failure:(MBFailure)failure;
-(void)MBPost:(NSString *)url paramater:(NSMutableDictionary *)dic success:(MBSuccess)success failure:(MBFailure)failure;
@end
